Carbon


MPSetEvent

Header: Multiprocessing.h Carbon status: Supported

Merges event flags into a specified event group.

OSStatus MPSetEvent (
    MPEventID event, 
    MPEventFlags flags
);
event

The ID of the event group you want to set.

flags

The flags you want to merge into the event group.

function result

A result code.

DISCUSSION

The flags are logically ORed with the current flags in the event group. This procedure is an atomic operation to ensure that multiple updates do not get lost. If tasks are waiting on this event group, the first waiting task is unblocked.

Note that you can call this function from an interrupt handler.

Also see the function MPWaitForEvent.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in CarbonLib 1.0 and later when MPLibrary 2.0 or later is installed. Exported by CarbonLib 1.0 and later and by MPLibrary 2.0 and later.


© 2000 Apple Computer, Inc. — (Last Updated 4/6/2000)